package com.loyin.model;

import com.et.ar.ActiveRecordBase;
import com.et.ar.annotations.Column;
import com.et.ar.annotations.Id;
import com.et.ar.annotations.Table;
/**
 * 下载网址
 * @author 刘声凤
 * 2011-11-11
 */
@Table(name="igs_downloadurl")
public class DownloadUrl extends ActiveRecordBase {
	@Id
	public Long id;
	@Column
	public long userid;
	@Column
	public long websiteid;
	@Column
	public String title;
	@Column
	public String url;
	/**收录时间*/
	@Column
	public String recordtime;
	/**是否已经下载,0是没有下载，1是已经下载了，-1是下载后删除了*/
	@Column
	public int isdownload=0;
	/**符合关键字个数*/
	@Column
	public int keycount;
	@Column
	public long isread=0;	
	@Column
	public long downloadsize=0;
	
	public DownloadUrl(){super();}
	public DownloadUrl(long userid,long websiteid,String title,String url,int keycount,String recordtime){
		super();
		if(userid!=0){
			this.userid=userid;
		}
		if(websiteid!=0){
			this.websiteid=websiteid;
		}
		this.title=title;
		this.url=url;
		this.keycount=keycount;
		this.recordtime=recordtime;
	}
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getRecordtime() {
		return recordtime;
	}
	public void setRecordtime(String recordtime) {
		this.recordtime = recordtime;
	}
	public int getIsdownload() {
		return isdownload;
	}
	public void setIsdownload(int isdownload) {
		this.isdownload = isdownload;
	}

	public long getUserid() {
		return userid;
	}
	public void setUserid(long userid) {
		this.userid = userid;
	}
	public long getWebsiteid() {
		return websiteid;
	}
	public void setWebsiteid(long websiteid) {
		this.websiteid = websiteid;
	}
	public int getKeycount() {
		return keycount;
	}
	public void setKeycount(int keycount) {
		this.keycount = keycount;
	}
	public long getIsread()
	{
		return isread;
	}
	public void setIsread(long isread)
	{
		this.isread = isread;
	}
	public long getDownloadsize()
	{
		return downloadsize;
	}
	public void setDownloadsize(long downloadsize)
	{
		this.downloadsize = downloadsize;
	}
	
}
